
            package com.lmk;

            import java.awt.*;
            import java.io.IOException;
            import java.text.SimpleDateFormat;
            import java.util.Date;

            /**
 * 命令工具
 */
public class Cmd {

    /**
     * 执行系统内置的程序，可以不用提供完整的安装路径
     * @param app
     */
    public static void system(String app){
        run(app);
    }

    /**
     * 执行命令
     * @param appPath
     */
    public static void run(String appPath){
        try {
            Runtime.getRuntime().exec(appPath);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static void alarm(){
        Toolkit.getDefaultToolkit().beep();

        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        Toolkit.getDefaultToolkit().beep();
    }
    public static void openURL(String openURL){
        try {
            Runtime.getRuntime().exec(openURL);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

   public static  void getTIME(String A){

        Date date = new Date( );
       SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd 'at' HH:mm:ss z");
       System.out.println(format.format(date));


   }





}